negotiator.analysis
Class BidPointSorterB

java.lang.Object
  extended by negotiator.analysis.BidPointSorterB
All Implemented Interfaces:
java.util.Comparator<BidPoint>

public class BidPointSorterB
extends java.lang.Object
implements java.util.Comparator<BidPoint>

Sorts BidPoint based on their utility for agent B.


Constructor Summary
BidPointSorterB()
           
 
Method Summary
 int compare(BidPoint b1, BidPoint b2)
          Comperator.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

BidPointSorterB

public BidPointSorterB()
Method Detail

compare

public int compare(BidPoint b1,
                   BidPoint b2)
Comperator. If utility b1 < b2 then -1, else if > then 1, else compare hashcodes.

Specified by:
compare in interface java.util.Comparator<BidPoint>